package com.zhanggm.zyk.contract;

import com.netflix.loadbalancer.IRule;
import com.netflix.loadbalancer.RandomRule;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.openfeign.EnableFeignClients;
import org.springframework.context.annotation.Bean;

/**
 * Hello world!
 */
@EnableFeignClients
@MapperScan("com.zhanggm.zyk.contract.mapper")
@SpringBootApplication
public class ContractApp {
    public static void main(String[] args) {
        SpringApplication.run(ContractApp.class, args);
    }


    @Bean
    public IRule iRule() {
        return new RandomRule();
    }
}
